<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>编辑栏目</title>
	<hdjs/>
</head>
<body>
	<div class='wrap'>
		<div class='menu_list'>
			<ul>
				<li><a href="{|U:'index'}">栏目列表</a></li>
				<li><a href="{|U:'add'}">添加栏目</a></li>
		</ul>
		</div>
		<form action="" method='post'>
			<div class='title-header'>编辑栏目</div>
				<!-- 隐藏域传栏目的id -->
			<input type="hidden" name='cid'  value="{$field.cid}">
			<table class='table1 hd-form'>
				<tr>
					<th>父级</th>
					<td>
						<select name="pid" id="cid">
							<option value="0">顶级</option>
							<list from='$category' name='$c'>
							<!-- selected,默认选择项,disabled不被选择项 -->
								<option value="{$c.cid}" {$c.selected} {$c.disabled}>{$c._name}</option>
							</list>
						</select>
					</td>
				</tr>
				<tr>
					<th>栏目名称</th>
					<td>
						<input type="text" name='cat_name' class='w200' value="{$field.cat_name}">
					</td>
				</tr>
				<tr>
					<th>商品类型</th>
					<td>
						<select name="cat_id" id="">
					<!-- 		<option value="0">==商品类型==</option> -->
							<list from='$goodsType' name='$g'>
								<option value="{$g.cat_id}" <if value="$field.cat_id == $g.cat_id">selected=""</if>>{$g.cat_name}</option>
							</list>
						</select>
					</td>
				</tr>
				<tr>
					<th>状态</th>
					<td>
						<label>
							<input type="radio" name='is_show' value="0" <if value="$field.is_show} ==0">checked=""</if>>隐藏
						</label>
						<label>
							<input type="radio" name='is_show' value="1" <if value="$field.is_show} ==1">checked=""</if>>显示
						</label>
					</td>
				</tr>
				<tr>
					<th>单位</th>
					<td>
						<input type="text" value="{$field.measure_unit}" name='measure_unit' class='w200'> 
					</td>
				</tr>
				<tr>
					<th>价格区间</th>
					<td>
						<input type="text"  name='grade' class='w200' value="{$field.grade}"> 
					</td>
				</tr>
				<tr>
					<th>关键字</th>
					<td>
						<input type="text" name='cat_key' class='w200' value="{$field.cat_key}"> 
					</td>
				</tr>
				<tr>
					<th>描述</th>
					<td>
						<textarea name="cat_desc" class='w300 h100'>{$field.cat_desc}</textarea>
					</td>
				</tr>
			</table>
			<input type="submit" class='hd-success' value='编辑'/>
		</form>
	</div>
</body>
</html>